<template>
  <div id="auction_love">
    <c-title :hide="false" text="保证金"> </c-title>
    <div class="backgroundBox"></div>
    <div class="contentBox">
      <div class="title">
        <div class="imag">
          <img src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/auction/money@2x.png" alt="" />
        </div>
        <div class="txt">我的保证金（元）</div>
      </div>
      <div class="moneyTxt">{{ Data.balance }}</div>
    </div>
    <div class="bottom">
      <div class="left">
        <div class="txt">可提现金额</div>
        <div class="price">￥{{Data.can_withdraw}}</div>
        <div class="btn" @click="toPage('auctionWithdraw')">
          <div class="txta">去提现</div>
          <van-icon name="arrow" size="10" color="#ffffff" />
        </div>
      </div>
      <div class="right">
        <div class="txt">不可提现金额</div>
        <div class="price">￥{{Data.can_not_withdraw}}</div>
        <div class="btn" @click="toCheck">
          <div class="txta">查看</div>
          <van-icon name="arrow" size="10" color="#ffffff" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import auction_love_controller from "./auction_love_controller";

export default auction_love_controller;
</script>

<style lang="scss" rel="stylesheet/scss" scoped>
#auction_love {
  .backgroundBox {
    height: 5rem;
    width: 100%;
    background: #ff8826;
  }

  .bottom {
    margin: 0 0.625rem;
    margin-top: 0.625rem;
    height: 6.0625rem;
    display: flex;
    justify-content: space-between;

    .left,
    .right {
      padding: 0.75rem 0 0 0;
      width: 10.7813rem;
      background: #fff;
      border-radius: 0.3125rem;
      display: flex;
      flex-direction: column;
      align-items: center;

      .txt {
        font-size: 0.6875rem;
      }

      .price {
        font-size: 0.9375rem;
        color: #f14e4e;
        line-height: 1.5rem;
      }

      .btn {
        padding: 0.3125rem 0.625rem 0.3125rem 0.5625rem;
        background: #ff8924;
        border-radius: 0.1875rem;
        display: flex;
        align-items: center;
        margin-top: 0.3rem;

        i {
          margin-top: 0.125rem;
        }

        .txta {
          margin-right: 0.2rem;
          font-size: 0.6875rem;
          color: #fff;
        }
      }
    }
  }

  .contentBox {
    min-height: 6.25rem;
    margin: 0 0.625rem;
    background: #fff;
    border-radius: 0.3125rem;
    margin-top: -3.125rem;
    padding: 1.125rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    .moneyTxt {
      font-size: 1.5rem;
      font-weight: 500;
      color: #f14e4e;
    }

    .title {
      display: flex;
      align-items: center;

      .imag {
        width: 0.7188rem;
        height: 0.7813rem;
        margin-top: -0.1563rem;
        margin-right: 0.3125rem;

        img {
          width: 100%;
          height: 100%;
        }
      }

      .txt {
        font-size: 0.75rem;
        color: #ff8924;
        line-height: 1.5rem;
      }
    }
  }
}

</style>
